#include <stdio.h>
#include <stdlib.h>

int binary_search(int* a,unsigned int num,int element);

int main()
{
	int arr[10]={1,3,4,9,10,12,14,19,22,100};
	int pos = binary_search(arr,10,22);
	printf("%d\r\n",pos);
	return 0;
}
